<?php
include '../config.php';
$mysqli = new mysqli($db_host, $db_user, $db_passwd, $db_name);
if (mysqli_connect_errno()) {
    die("Connect failed: " . mysqli_connect_error());
}
?>
